<script setup lang="ts">
import { provide, ref } from 'vue';
import UseInject from './UseInject.vue';

const num = ref(1);

provide("num", num);
</script>

<template>
    <div>
        <button @click="num += 1">+1</button>
        <UseInject />
    </div>
</template>